package com.yida.wy.vote.outside.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yida.common.core.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author lqq
 * @date 2023-05-08
 */
@ApiModel("业主投票票根输出")
public class WyVoteOwnerTicketStubDetailDTO implements Serializable {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty("投票ID")
	private Long voteId;

	@ApiModelProperty("编号")
	private Long resultId;

	@ApiModelProperty("小区")
	@Excel(name = "小区")
	private String communityName;

	@ApiModelProperty("地区")
	private String areaName;

	@ApiModelProperty("街道")
	private String streetName;

	@ApiModelProperty("业主名称")
	private String ownerName;

	@ApiModelProperty("业主手机号码")
	private String ownerPhone;

	@ApiModelProperty("房屋坐落")
	private String houseLocation;

	@ApiModelProperty("房号")
	private String roomNum;

	@ApiModelProperty("领票时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date voteTime;

	@ApiModelProperty("建筑面积")
	private BigDecimal totalSize;

	@ApiModelProperty("投票结果json")
	private String resultJson;

	public String getResultJson() {
		return resultJson;
	}

	public void setResultJson(String resultJson) {
		this.resultJson = resultJson;
	}

	public BigDecimal getTotalSize() {
		return totalSize;
	}

	public void setTotalSize(BigDecimal totalSize) {
		this.totalSize = totalSize;
	}

	public Long getVoteId() {
		return voteId;
	}

	public void setVoteId(Long voteId) {
		this.voteId = voteId;
	}

	public Long getResultId() {
		return resultId;
	}

	public void setResultId(Long resultId) {
		this.resultId = resultId;
	}

	public String getCommunityName() {
		return communityName;
	}

	public void setCommunityName(String communityName) {
		this.communityName = communityName;
	}

	public String getAreaName() {
		return areaName;
	}

	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}

	public String getStreetName() {
		return streetName;
	}

	public void setStreetName(String streetName) {
		this.streetName = streetName;
	}

	public String getOwnerName() {
		return ownerName;
	}

	public void setOwnerName(String ownerName) {
		this.ownerName = ownerName;
	}

	public String getOwnerPhone() {
		return ownerPhone;
	}

	public void setOwnerPhone(String ownerPhone) {
		this.ownerPhone = ownerPhone;
	}

	public String getHouseLocation() {
		return houseLocation;
	}

	public void setHouseLocation(String houseLocation) {
		this.houseLocation = houseLocation;
	}

	public String getRoomNum() {
		return roomNum;
	}

	public void setRoomNum(String roomNum) {
		this.roomNum = roomNum;
	}

	public Date getVoteTime() {
		return voteTime;
	}

	public void setVoteTime(Date voteTime) {
		this.voteTime = voteTime;
	}

	@Override
	public String toString() {
		final StringBuffer sb = new StringBuffer("GwjVoteOwnerTicketStubDetailDTO{");
		sb.append("voteId=").append(voteId);
		sb.append(", resultId=").append(resultId);
		sb.append(", communityId=").append(communityName);
		sb.append(", areaId=").append(areaName);
		sb.append(", streetId=").append(streetName);
		sb.append(", ownerName='").append(ownerName).append('\'');
		sb.append(", ownerPhone='").append(ownerPhone).append('\'');
		sb.append(", houseLocation='").append(houseLocation).append('\'');
		sb.append(", roomNum='").append(roomNum).append('\'');
		sb.append(", voteTime=").append(voteTime);
		sb.append('}');
		return sb.toString();
	}
}
